home *** CD-ROM | disk | FTP | other *** search
/ Workbench Add-On / Workbench Add-On - Volume 1.iso / BBS-Archive / Dev / gcc263-src.lha / gcc-2.6.3 / config / sparc / lynx.h < prev    next >
C/C++ Source or Header  |  1994-07-11  |  2KB  |  53 lines

  1. /* Definitions for SPARC running LynxOS.
  2.    Copyright (C) 1993 Free Software Foundation, Inc.
  3.  
  4. This file is part of GNU CC.
  5.  
  6. GNU CC is free software; you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation; either version 2, or (at your option)
  9. any later version.
  10.  
  11. GNU CC is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. GNU General Public License for more details.
  15.  
  16. You should have received a copy of the GNU General Public License
  17. along with GNU CC; see the file COPYING.  If not, write to
  18. the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  19.  
  20. #include "sparc/sparc.h"
  21.  
  22. #undef ASM_OUTPUT_IDENT
  23. #undef SELECT_SECTION
  24. #undef SELECT_RTX_SECTION
  25.  
  26. #define BSS_SECTION_ASM_OP    ".section\t\".bss\""
  27.  
  28. #include "lynx.h"
  29.  
  30. /* ??? Must redefine to get sparclite and v8 defines.  Can this be done
  31.    differently?  */
  32.  
  33. #undef CPP_SPEC
  34. #define CPP_SPEC "%{mthreads:-D_MULTITHREADED}  \
  35.   %{mposix:-D_POSIX_SOURCE}  \
  36.   %{msystem-v:-I/usr/include_v}  \
  37.   %{msparclite:-D__sparclite__} %{mv8:-D__sparc_v8__}"
  38.  
  39. /* Names to predefine in the preprocessor for this target machine.  */
  40.  
  41. #undef CPP_PREDEFINES
  42. #define CPP_PREDEFINES "-Dunix -Dsparc -DSPARC -DLynx -DLYNX -DIBITS32 -Asystem(unix) -Asystem(lynx) -Acpu(sparc) -Amachine(sparc)"
  43.  
  44. #undef LINK_SPEC
  45.  
  46. /* Sparc version of libc.a has references to libm.a (printf calls pow for
  47.    instance), so we must always link both. */
  48.  
  49. #undef LIB_SPEC
  50. #define LIB_SPEC "%{mthreads:-L/lib/thread/}  \
  51.   %{msystem-v:-lc_v -lm_v -lc_v}  \
  52.   %{!msystem-v:%{mposix:-lc_p} -lc -lm -lc}"
  53.